/*
 * rule.h
 *
 *  Created on: Mar 29, 2015
 *      Author: silivas
 */

#ifndef SRC_RULE_H_
#define SRC_RULE_H_
#include <vector>
#include <string>
#include "word.h"
using namespace std;
class Rule {
public:
	Rule(const vector<string>::iterator beg, const vector<string>::iterator end){
		vector<string>::iterator iter = beg;
		for(;iter != end; iter++){
			_rule.push_back(Word(*iter));
		}
	}

	Word& operator[](vector<Word>::size_type i){
		return _rule[i];
	}

	int size(){
		return _rule.size();
	}

private:
	vector<Word> _rule;
};



#endif /* SRC_RULE_H_ */
